package core.ui.demo;

import javafx.scene.control.Tab;
import javafx.scene.control.TabPane;
import javafx.scene.web.HTMLEditor;
/**
 * @author 李瑜
 * @since JavaFX 8.0
 */
public class DemoTabPane
{
	public static TabPane getTabPane()
	{
		TabPane tabs = new TabPane();
		
		Tab tab1 = new Tab("网页编辑器");
		tab1.setContent(new HTMLEditor());
		
		Tab tab2 = new Tab("分页的使用");
		tab2.setContent(DemoPagination.getPagination());
		
		Tab tab3 = new Tab("列表的使用");
		tab3.setContent(DemoListView.getListView());
		
		Tab tab4 = new Tab("表格的使用");
		tab4.setContent(DemoTableView.getTableView());
		
		Tab tab5 = new Tab("树形的使用");
		tab5.setContent(DemoTreeView.getTreeView());
		
		Tab tab6 = new Tab("图表的使用");
		tab6.setContent(DemoAreaChart.getAreaChart());
		
		Tab tab7 = new Tab("线性的图表");
		tab7.setContent(DemoLineChart.getLineChart());
		
		Tab tab8 = new Tab("柱形的图表");
		tab8.setContent(DemoBarChart.getBarChart());
		
		Tab tab9 = new Tab("饼形的图表");
		tab9.setContent(DemoPieChar.getPieChart());
		
		tabs.getTabs().add(tab1);
		tabs.getTabs().add(tab2);
		tabs.getTabs().add(tab3);
		tabs.getTabs().add(tab4);
		tabs.getTabs().add(tab5);
		tabs.getTabs().add(tab6);
		tabs.getTabs().add(tab7);
		tabs.getTabs().add(tab8);
		tabs.getTabs().add(tab9);
		
		return tabs;
	}
}
